package com.bestcem.xm.user.grpc.service.param;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 本地入参
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/1/25 15:20
 */
@Data
@Accessors(chain = true)
public class GroupIdsPageParam {

    /**
     * 分页参数
     */
    private PageParam pageParam;

    /**
     * 用户组id列表
     */
    @Size(min = 1, message = "用户组id列表不能为空")
    private List<@Pattern(regexp = RegTypes.OBJECT_ID, message = "用户组id错误") String> groupIds;

    /**
     * 是否包含子组
     */
    private Boolean includeSub;
}
